package org.springframework.validation.executors.impl;

import org.springframework.validation.executors.RuleExecutor;
import org.springframework.validation.util.ValidationRulesUtils;


public class RequiredRuleExecutor implements RuleExecutor {

	public boolean validate(Object model, Object argument) throws Exception {
		return !ValidationRulesUtils.isEmpty(model);
	}
}
